<template>
    <div class="Bill">

    </div>
</template>

<script>
    export default {
        name: "Bill",
      data(){
        return {
          userInfo:[],
          initList:[],
        }
      },
      created:function () {
        setTitle('账单')
      },
      methods:{
        //获取积分列表数据
        async getCommodity() {
          let params = {
              user_id: this.userInfo.userId,
              slbType: 0,
          };
          const res = await this.$axios.post(this.$api.selectSlbDetail, params);
          if (res.success) {
              this.intList = res.data;
          } else {
            this.$toast(res.msg);
          }
        },

      },
      mounted(){
        this.userInfo=JSON.parse(localStorage.getItem("userInfo"));
        this.getCommodity()
      }
    }
</script>

<style scoped>

</style>
